/*
 * AddClass.h
 *
 *  Created on: Jan 11, 2009
 *      Author: sez
 */

#ifndef ADDCLASS_H_
#define ADDCLASS_H_

#include <QDialog>

#include "AddUpdateDialog.h"

class ClassDetails;
class ClassModels;
namespace Ui {
    class AddClassDialog;
}

class AddClass: public AddUpdateDialog
{
    Q_OBJECT
public:
    AddClass(QWidget *parent = 0);
    virtual ~AddClass();
    TitledData *data();
    static AddClass *dialog(QWidget *parent = 0);
private Q_SLOTS:
    void on_powerPushButton_clicked(bool);
    void on_traitPushButton_clicked(bool);
protected:
    void loadData();
    void saveData();
    void setupData();
    void clearData();
private:
    Ui::AddClassDialog *mAddClass;
    ClassDetails *mData;
    ClassModels *mModels;
};

#endif /* ADDCLASS_H_ */
